#ifndef DATABASEMANAGER_H
#define DATABASEMANAGER_H

#include <QObject>
#include <QSqlDatabase>
#include <QDebug>

class DatabaseManager : public QObject
{
    Q_OBJECT
public:
    static DatabaseManager& instance();
    explicit DatabaseManager(QObject *parent = nullptr);
    bool openDatabase(const QString &path);
    void closeDatabase();
private:
    QSqlDatabase db;
    QString dbPath="/home/ubuntu/Desktop/Qt/MangerSystermServer/sqlite/data.db";
signals:
};

#endif // DATABASEMANAGER_H
